package com.tdy.resource;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by tangdaoyuan  on 15/11/26.
 */
@Path("helloworld")
@Api(value = "HelloWorldResource")
@Produces({"application/json"})

public class HelloWorldResource {
    public static final String CLIENT_MESSAGE = "Hello World";

    @ApiOperation(value = "Finds Pets by status",
            notes = "Multiple status values can be provided with comma seperated strings", response = String.class)
    @GET
    @Path("/getHello/{username}")
    @Produces("application/json")
    public Map<String, String> getHello(@PathParam("username") String username) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("username", username);
        map.put("password", "19930604");
        return map;
    }
}
